package com.googlecode.tapestry5validator.hibernate.adapters;

import java.lang.annotation.Annotation;

import org.hibernate.validator.Digits;

public class DigitsAdapter extends ParametersToJsonAdapter {

	@Override
	public Class<? extends Annotation> getAnnotationClass() {
		return Digits.class;
	}

	@Override
	public String getJSMethod() {
		return "hvDigits"; 
	}

	@Override
	public String getValidatorType() {
		return "hv-digits";
	}

}
